package com.dt.app.modules.content.entities;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 陈辉
 * @since 2024-03-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("content_collection")
@ApiModel(value="ContentCollection对象", description="")
public class ContentCollection implements Serializable {

    private static final long serialVersionUID=20240313232015161L;

    @ApiModelProperty(value = "用户收藏")
    @TableId(value = "content_collection_id", type = IdType.AUTO)
    private Long contentCollectionId;

    @ApiModelProperty(value = "收藏人")
    @TableField("customer_id")
    private Long customerId;

    @ApiModelProperty(value = "企业")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "被收藏对象的id 为适配性用长整形")
    @TableField("content_id")
    private Long contentId;

    @ApiModelProperty(value = "收藏说明")
    @TableField("msg")
    private String msg;

    @ApiModelProperty(value = "收藏时间")
    @TableField("create_time")
    private LocalDateTime createTime;


}
